<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/16 0016
  Time: 上午 10:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>Title</title>
    <script src="../../js/jquery-3.3.1.min.js" charset="utf-8"></script>
    <script src="../../js/cookie/jquery.cookie.js" charset="utf-8"></script>
    <script src="../../layui-v2.2.5/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="../../layui-v2.2.5/layui/css/layui.css" media="all">
    <style>
        .layui-table-view{
            margin-bottom: 120px;
        }
    </style>
</head>
<body>
<br><br><br>
<div>
    <button class="layui-btn" id="add"  onclick="addShopClass()">上传图标</button>
    <%--<select name="state" id="state" lay-verify="" style="margin-top:0rem !important;font-size: 1.3rem;--%>
    <%--height: 2.1rem;width: 6rem; line-height:2rem;margin-left: 3rem"--%>
    <%--onchange="seachOrder()">--%>
    <%--<option value="" selected="selected">全部</option>--%>
    <%--<option value="0" <c:if test="${key eq '0'}">selected="selected"</c:if> >未上架</option>--%>
    <%--<option value="1" <c:if test="${key eq '1'}">selected="selected"</c:if>>上架中</option>--%>
    <%--<option value="2" <c:if test="${key eq '2'}">selected="selected"</c:if>>已下架</option>--%>
    <%--</select>--%>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right;margin-right: 100px"  href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i>
    </a>
</div>
<script>
    function seachOrder() {
        window.location.href='/shop/commodityList?key='+$("#state").val();
    }
</script>
<div class="layui-form">
    <form class="layui-form" action="">
        <table class="layui-table">
            <thead>
            <tr>
                <th>名称</th>
                <th>logo</th>



            </tr>
            </thead>
            <tbody>

            <tr>
                <td>海报</td>
                <td><img src="${record.poster}" style="height: 60px;width: 60px"></td>

            </tr>
            <tr>
                <td>打电话图标</td>
                <td><img src="${record.callIcon}" style="height: 60px;width: 60px"></td>

            </tr>
            <tr>
                <td>客服图标</td>
                <td><img src="${record.serviceIcon}" style="height: 60px;width: 60px"></td>

            </tr>

            <tr>
                <td>二维码图片</td>
                <td><img src="${record.qRcodeimg}" style="height: 60px;width: 60px"></td>

            </tr>

            <tr>
                <td>关于我们</td>
                <td><img src="${record.aboutUs}" style="height: 60px;width: 60px"></td>

            </tr>

            <tr>
                <td>客服电话</td>
                <td>${record.serviceTel}</td>

            </tr>
            </tbody>
        </table>
    </form>


    <div id="page"></div>
</div>
<script>

    layui.use('layer', function(){
        var layer = layui.layer;

    });

    /*添加分类*/
    function addShopClass() {
        //$.cookie("orgDate",null);
        layer.open({
            type: 2,
            title:"分类信息",
            shadeClose:true,
            offset: '30px',
            area: ['75%', '75%'],
            content: '/shop/uoloadIcondetail',
            end:function () {
                window.location.reload();
            }
        });
    }


</script>
</body>
</html>
